package com.atguigu.gmall.list.client;

import com.atguigu.gmall.common.result.Result;
import com.atguigu.gmall.model.list.SearchParam;
import com.atguigu.gmall.model.list.SearchResponseVo;
import org.springframework.stereotype.Component;

/**
 * @author: 封捷
 * @create-date: 2022/8/31 9:08
 */
@Component
public class ListDegradeFeignClient implements ListFeignClient {
    @Override
    public Result<Void> incrGoodsHotScore(Long skuId) {

        Result<Void> result = Result.fail();

        result.message("服务降级");

        return result;
    }

    @Override
    public Result<SearchResponseVo> search(SearchParam searchParam) {
        return Result.<SearchResponseVo>fail().message("服务降级");
    }
}
